package studia.figlewicz.dao.ejb;

// Generated 2011-06-15 09:11:23 by Hibernate Tools 3.4.0.CR1

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Wycenynog generated by hbm2java
 */
@Entity
@Table(name = "WYCENYNOG", schema = "MARCIN", uniqueConstraints = @UniqueConstraint(columnNames = {
		"IDWYCENYINSTRUMENTU", "IDNOGI" }))
public class Wycenynog implements java.io.Serializable {

	private BigDecimal idwycenynogi;
	private Wycenyinstrumentow wycenyinstrumentow;
	private Nogiinstrumentow nogiinstrumentow;
	private BigDecimal cenarealna;
	private BigDecimal delta;
	private BigDecimal gamma;
	private BigDecimal rho;
	private BigDecimal vega;
	private Set<Wycenyplatnosci> wycenyplatnoscis = new HashSet<Wycenyplatnosci>(
			0);

	public Wycenynog() {
	}

	public Wycenynog(BigDecimal idwycenynogi,
			Wycenyinstrumentow wycenyinstrumentow,
			Nogiinstrumentow nogiinstrumentow) {
		this.idwycenynogi = idwycenynogi;
		this.wycenyinstrumentow = wycenyinstrumentow;
		this.nogiinstrumentow = nogiinstrumentow;
	}

	public Wycenynog(BigDecimal idwycenynogi,
			Wycenyinstrumentow wycenyinstrumentow,
			Nogiinstrumentow nogiinstrumentow, BigDecimal cenarealna,
			BigDecimal delta, BigDecimal gamma, BigDecimal rho,
			BigDecimal vega, Set<Wycenyplatnosci> wycenyplatnoscis) {
		this.idwycenynogi = idwycenynogi;
		this.wycenyinstrumentow = wycenyinstrumentow;
		this.nogiinstrumentow = nogiinstrumentow;
		this.cenarealna = cenarealna;
		this.delta = delta;
		this.gamma = gamma;
		this.rho = rho;
		this.vega = vega;
		this.wycenyplatnoscis = wycenyplatnoscis;
	}

	@Id
	@Column(name = "IDWYCENYNOGI", unique = true, nullable = false, precision = 22, scale = 0)
	public BigDecimal getIdwycenynogi() {
		return this.idwycenynogi;
	}

	public void setIdwycenynogi(BigDecimal idwycenynogi) {
		this.idwycenynogi = idwycenynogi;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IDWYCENYINSTRUMENTU", nullable = false)
	public Wycenyinstrumentow getWycenyinstrumentow() {
		return this.wycenyinstrumentow;
	}

	public void setWycenyinstrumentow(Wycenyinstrumentow wycenyinstrumentow) {
		this.wycenyinstrumentow = wycenyinstrumentow;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IDNOGI", nullable = false)
	public Nogiinstrumentow getNogiinstrumentow() {
		return this.nogiinstrumentow;
	}

	public void setNogiinstrumentow(Nogiinstrumentow nogiinstrumentow) {
		this.nogiinstrumentow = nogiinstrumentow;
	}

	@Column(name = "CENAREALNA", precision = 24, scale = 12)
	public BigDecimal getCenarealna() {
		return this.cenarealna;
	}

	public void setCenarealna(BigDecimal cenarealna) {
		this.cenarealna = cenarealna;
	}

	@Column(name = "DELTA", precision = 24, scale = 12)
	public BigDecimal getDelta() {
		return this.delta;
	}

	public void setDelta(BigDecimal delta) {
		this.delta = delta;
	}

	@Column(name = "GAMMA", precision = 24, scale = 12)
	public BigDecimal getGamma() {
		return this.gamma;
	}

	public void setGamma(BigDecimal gamma) {
		this.gamma = gamma;
	}

	@Column(name = "RHO", precision = 24, scale = 12)
	public BigDecimal getRho() {
		return this.rho;
	}

	public void setRho(BigDecimal rho) {
		this.rho = rho;
	}

	@Column(name = "VEGA", precision = 24, scale = 12)
	public BigDecimal getVega() {
		return this.vega;
	}

	public void setVega(BigDecimal vega) {
		this.vega = vega;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "wycenynog")
	public Set<Wycenyplatnosci> getWycenyplatnoscis() {
		return this.wycenyplatnoscis;
	}

	public void setWycenyplatnoscis(Set<Wycenyplatnosci> wycenyplatnoscis) {
		this.wycenyplatnoscis = wycenyplatnoscis;
	}

}
